package com.ruoyi.iot.service;

import com.ruoyi.iot.domain.IotSensorMsg;

import java.util.List;

public interface IIOTSensorMsgService {

    /**
     * 判断是否存在相同 remoteId 和 reportTime 的记录
     */
    boolean existsByRemoteIdAndReportTime(String remoteId, String reportTime);

    /**
     * 批量插入数据
     */
    void batchInsert(List<IotSensorMsg> list);

    List<IotSensorMsg> selectSensorMsgByType(String type);

    int batchUpdateState(List<IotSensorMsg> msgList);
}
